CXXFLAGS = -I/usr/include -I.
LDFLAGS = -L/usr/lib `sdl-config --cflags --libs` -lm -lSDL_image -lGL -lGLU -lglut

all: main

main: main.o Vertex3D.o Face.o Object3D.o Scene.o Util.o
main.o: main.cpp Vertex3D.h Face.h Object3D.h Scene.h Util.h

main_glut: main_glut.o Vertex3D.o Face.o Object3D.o Util.o
main_glut.o: main_glut.cpp Vertex3D.h Face.h Object3D.h Util.h

clean:
	@echo Cleaning up...
	rm -f *~ *.o main
	@echo Done.
